package designPattern.creationpattern.builder;

/**
 * @author wei.zhao
 * @description:
 * @date 2021年12月09日 23:40
 */
public class HouseDirector {

    AbstractHouseBuilder houseBuilder;

    public HouseDirector(AbstractHouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public House buildHouse() {
        return houseBuilder.buildBase().buildWall().buildRoof().buildHouse();
    }

}
